/* Markdown 样式 */
.msg-content {
  word-wrap: break-word;
  word-break: break-word;
}

.msg-content pre {
  background-color: #f6f8fa;
  border-radius: 4px;
  padding: 16px;
  overflow: auto;
  margin: 16px 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
}

.msg-content code {
  background-color: #f6f8fa;
  border-radius: 3px;
  padding: 2px 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
}

.msg-content pre code {
  background-color: transparent;
  padding: 0;
}

.msg-content a {
  color: #1890ff;
  text-decoration: none;
}

.msg-content a:hover {
  text-decoration: underline;
}

.msg-content h1, .msg-content h2, .msg-content h3, .msg-content h4, .msg-content h5, .msg-content h6 {
  margin: 16px 0 12px 0;
  font-weight: 600;
  line-height: 1.25;
}

.msg-content h1 {
  padding-bottom: 0.3em;
  font-size: 2em;
  border-bottom: 1px solid #eaecef;
}

.msg-content h2 {
  padding-bottom: 0.3em;
  font-size: 1.5em;
  border-bottom: 1px solid #eaecef;
}

.msg-content h3 {
  font-size: 1.25em;
}

.msg-content h4 {
  font-size: 1em;
}

.msg-content h5 {
  font-size: 0.875em;
}

.msg-content h6 {
  font-size: 0.85em;
  color: #6a737d;
}

.msg-content ul, .msg-content ol {
  padding-left: 2em;
  margin: 16px 0;
}

.msg-content li {
  margin: 4px 0;
}

.msg-content blockquote {
  border-left: 4px solid #dfe2e5;
  padding: 0 1em;
  color: #6a737d;
  margin: 16px 0;
}

.msg-content table {
  border-spacing: 0;
  border-collapse: collapse;
  margin: 16px 0;
  display: block;
  overflow: auto;
}

.msg-content th, .msg-content td {
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
}

.msg-content th {
  font-weight: 600;
  background-color: #f6f8fa;
}

.msg-content tr:nth-child(2n) {
  background-color: #f6f8fa;
}

.msg-content img {
  max-width: 100%;
  box-sizing: content-box;
}